-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chore] Don't use deprecated [Span|Trace]ID.HexString method #16301
[chore] Don't use deprecated [Span|Trace]ID.HexString method #16301
Conversation
3c8b528
to
1fc4900
Compare
1fc4900
to
f511925
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should create issues to every component and assign to owners to decide if empty string is expected for their encoding or "000000000000000...0000" is the expected value, and update their code to not use the new helper.
f511925
to
5e17c7f
Compare
The methods were deprecated since there is no establish convention on how to decode empty trace or span IDs at this point. The current method behavior is preserved in functions added in internal/coreinternal/traceutil. This commit updates all the usages of HexString where the result is used as identifier to the new internal methods.
5e17c7f
to
0bf06be
Compare
cause = &awsxray.CauseData{ | ||
Type: awsxray.CauseTypeObject, | ||
CauseObject: awsxray.CauseObject{ | ||
Exceptions: []awsxray.Exception{ | ||
{ | ||
ID: aws.String(hexID), | ||
ID: aws.String(hex.EncodeToString(segmentID[:])), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we know it's not empty here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newSegmentID
always generates a not empty span ID
…lemetry#16301) The methods were deprecated since there is no establish convention on how to decode empty trace or span IDs at this point. The current method behavior is preserved in functions added in internal/coreinternal/traceutil. This commit updates all the usages of HexString where the result is used as identifier to the new internal methods.
…lemetry#16301) The methods were deprecated since there is no establish convention on how to decode empty trace or span IDs at this point. The current method behavior is preserved in functions added in internal/coreinternal/traceutil. This commit updates all the usages of HexString where the result is used as identifier to the new internal methods.
The methods were deprecated in open-telemetry/opentelemetry-collector#6530. The current method behavior is preserved in new functions added in internal/coreinternal/traceutil. This commit updates all the usages of
HexString
where the result is used as an identifier to the new internal methods.Updates open-telemetry/opentelemetry-collector#6514